package com.meitianhui.convenitenbuy.module.mine.contract;

import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;
import com.meitianhui.convenitenbuy.module.mine.model.ConsumerAddress;
import com.meitianhui.convenitenbuy.module.mine.model.Region;

import java.util.List;

/**
 *  Created by amy on 2017/11/14.
 */

public interface AddOrNotifyAddressContract {
    interface View extends BaseView<AddOrNotifyAddressContract.Presenter> {

        void showAddressPopupWindow(List<Region> regionList, List<Region.Children> childList, List<Region.Children.ChildClass> childclassLists);

        void addOrNotifySuccess(boolean b);

        void showAddress(String AfterChangeAddress);

        void showSucc(String str);
    }

    interface Presenter extends BasePresenter {

        void selectReceivingAddress(List<Region> regionList, List<Region.Children.ChildClass> childclassLists, List<Region.Children> childList);

        void saveReceivingAddress(ConsumerAddress.ConsumerData consumerAddressBean, String receivingAddressName, String receivingAddressNumber, String tvAddressCode, String receivingAddressDetailAddress, String isMajorAddress);

        void changeCode2Address(String tvAddressCode, List<Region> regionList);
    }
}
